Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable proxy setting #91

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

enable proxy setting #91

wants to merge 3 commits into from

Conversation

naofum
Copy link

@naofum naofum commented May 19, 2017

When set proxy runtime environment in configuration of Project Settings,
enable proxy to request rest service.

use Extra JVM Parameters: -Dhttp.proxyHost= -Dhttp.proxyPort=

@@ -268,6 +268,9 @@ else if ("PUT".equals(method))
else if (request instanceof PutMethod && requestEntity != null)
((PutMethod)request).setRequestEntity(requestEntity);

if ((System.getProperty("http.proxyHost") != null) && (!"".equals(System.getProperty("http.proxyHost")))) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only for http proxys, not https?
Also, given that Commons Lang is already a dependency, consider using StringUtils.isEmpty().

@naofum
Copy link
Author

naofum commented May 22, 2017

setProxy() of HttpClient 3.1 enables both http and https

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants